package com.sakura.thread.chapter1.test10;

/**
 * Created by apple on 2018/12/11.
 */
public class daemonThreadTest {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                for(;;){
                    System.out.println("测试");
                }
            }
        });

        thread.setDaemon(true);

        thread.start();
        System.out.println("main is over");
    }
}
